﻿/**
 * Copyright (C) 2012 original author and authors
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace NGuice.Inject.Internal.Util
{
    /// <summary>
    /// 此接口被在垃圾回收他们的引用之后还具有代码需要运行的引用实现
    /// </summary>
    public interface IFinalizableReference
    {
        /// <summary>
        /// 在引用被垃圾回收后的后台线程调用，除非安全限制阻止后台线程。在这种
        /// 情况下，此方法将在新的引用创建后调用
        /// </summary>
        void FinalizeReferent();
    }
}
